package com.study.pojo;

import java.util.Date;

/**
 * 每日一读类
 * @Author Miss kun
 * @Date 2020/10/5 14:24
 * @Version 1.0
 */
public class Read {

    /**
     * id
     */
    private Integer id;
    /**
     * 名字
     */
    private String name;

    private String author;

    private String content;

    private Date date;

    public Read() {

    }

    public Read(String name, String author, String content) {
        this.name = name;
        this.author = author;
        this.content = content;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    @Override
    public String toString() {
        return "Read{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", author='" + author + '\'' +
                ", content='" + content + '\'' +
                ", date=" + date +
                '}';
    }
}
